package com.medium.house.entity;

import com.medium.house.enums.BasicStatusEnum;
import com.medium.house.enums.HouseTypeEnum;
import com.medium.house.enums.LeaseTypeEnum;
import com.medium.house.request.HouseSellPointRequestDto;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Data
public class HouseInfo implements Serializable{
    private Long id;

    private String openid;

    private String title;

    private String constructYears;

    private String houseType;

    private String floor;

    private String orientation;

    private String renovation;

    private Integer apartmentLayout;

    private String region;

    private String communityName;

    private String sellPrice;

    private String averagePrice;

    private BigDecimal area;

    private String address;

    private String sellPoint;

    private long sellPointRef;

    private String housePicture;

    private String depict;

    private String contacts;

    private String mobile;

    private BasicStatusEnum status;

    private HouseTypeEnum type;

    private LeaseTypeEnum lease;

    private String searchCondition;

    private String remark;

    private Date createdAt;

    private Date updatedAt;

    public HouseInfo initialize()
    {
        openid                        = "";
        title                         = "";
        constructYears                = "";
        houseType                     = "";
        floor                         = "";
        orientation                   = "";
        renovation                    = "";
        apartmentLayout               = 0;
        region                        = "";
        communityName                 = "";
        sellPrice                     = "";
        averagePrice                  = "";
        area                          = BigDecimal.valueOf(0, 3);
        address                       = "";
        sellPoint                     = "";
        sellPointRef                  = 0;
        housePicture                  = "";
        depict                      = "";
        contacts                      = "";
        mobile                        = "";
        status                        = BasicStatusEnum.ENABLED;
        type                          = HouseTypeEnum.SECONDHAND;
        searchCondition              = "";
        remark                        = "";
        createdAt                     = new Date();
        updatedAt                     = new Date();
        return this;
    }
}